package com.example.aop;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.*;

@Aspect
public class BoyAspect {

    @Pointcut("execution(* com.example.beans.Boy.sayHello())")
    public void sayHello(){}

    @Before(value = "sayHello()")
    public void before(){
        System.out.println("------- AOP -------");
    }
}
